home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Software
/
JB.1520-3.B.SFX
/
gpo labels
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
1990-02-12
|
3KB
|
91 lines
1000 REM*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
1010 REM* 1520 LABEL MAKER *
1020 REM* BY ROBERT LAPRAD [NASHKAT] *
1030 REM* COMPUSERVE ID [74406,2437] *
1040 REM*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
1050 :
1060 REMMAKE LABELS ON PLAIN PAPER USING THE DATA STATEMENTS AT END OF PROGRAM
1070 REMQUESTIONS OR COMMENTS WELCOME.
1080 POKE53280,11:POKE53281,11:DIMA$(20,4): REM INCREASE DIMA$ IF MORE ADDRESSES
1090 REMARE ADDED TO END OF THIS PROGRAM IN DATA STATEMENTS.
1100 PRINT"[147]"TAB(10)"[144] LABEL MAKER [159]":READU1$,U2$,U3$
1110 : READX$:IFX$="*"GOTO1140
1120 : C=C+1:A$(C,1)=X$
1130 : READA$(C,2),A$(C,3),A$(C,4):GOTO1110
1140 PRINT"[153] F R O M : [223]"
1150 PRINT"P = PROGRAMMED ADDRESS":PRINT"E = ENTER YOUR 'FROM-' ADDRESS"
1160 GETI$:IFI$<>"P"ANDI$<>"E"GOTO1160
1170 PRINT"[147]"TAB(10)" LABEL PRINTER "
1180 PRINT"[169] FROM: 3 LINES:NO COMMAS: MAX--->"
1190 IFI$<>"P"GOTO1220
1200 PRINT"LINE 1 [146]";U1$:PRINT"LINE 2 [146]";U2$:PRINT"LINE 3 [146]";U3$
1210 L$(1)=U1$:L$(2)=U2$:L$(3)=U3$:GOTO1280
1220 INPUT"LINE 1 [146] MAX=17:";L$(1)
1230 IF LEN(L$(1))>17 THENPRINT"MAX=17 CHARACTERS!":GOTO1220
1240 INPUT"LINE 2 [146] MAX=19:";L$(2)
1250 IF LEN(L$(2))>19THENPRINT"MAX=19 CHARACTERS!":GOTO1240
1260 INPUT"LINE 3 [146] MAX=19:";L$(3)
1270 IF LEN(L$(3))>19THENPRINT"MAX=19 CHARACTERS!":GOTO1260
1280 PRINT" MAX--->[146]"
1290 INPUT"DO AGAIN <Y/N> N[157][157][157]";A$
1300 IFA$="Y"THENGOTO1140
1310 PRINT"[158] T O : [223]"
1320 PRINT"P = PROGRAMMED ADDRESS",,"E = ENTER YOUR 'TO-' ADDRESS"
1330 GETI$:IFI$=""GOTO1330
1340 IFI$="E"GOTO1370
1350 PRINT"[145][145][145]":FORF=1TOC: PRINT" "F" [146]";A$(F,1)" ":NEXT
1360 INPUT"ENTER NUMBER OF PERSON TO ";I$ : I=VAL(I$) : IFI<1ORI>C+1THENI=0
1370 PRINT"[169] TO: 4 LINES:NO COMMAS: MAX--->"
1380 IFITHEN FORF=1TO4:L$(F+3)=A$(I,F):PRINT"LINE "F" [146]";L$(F+3):NEXT : GOTO1470
1390 INPUT"LINE 1 [146] MAX=17:";L$(4)
1400 IF LEN(L$(4))>17 THENPRINT"MAX=17 CHARACTERS!":GOTO1390
1410 INPUT"LINE 2 [146] MAX=19:";L$(5)
1420 IF LEN(L$(5))>19THENPRINT"MAX=19 CHARACTERS!":GOTO1410
1430 INPUT"LINE 3 [146] MAX=19:";L$(6)
1440 IF LEN(L$(6))>19THENPRINT"MAX=19 CHARACTERS!":GOTO1430
1450 INPUT"LINE 3 [146] MAX=19:";L$(7)
1460 IF LEN(L$(7))>19THENPRINT"MAX=19 CHARACTERS!":GOTO1450
1470 PRINT" MAX--->[146]
1480 [153] "COLOR: 0=BLK 1=BLUE 2=GREEN 3=RED"
1490 [133]"ENTER COLOR (0-3) 1CMDCMDCMD";CC
1500 [139]CC[179]0[176]CC[177]3[167]1490
1510 [151]53280,6:[153]"PRESS R WAIT WHEN READY",,"PRESS A WAIT TO ABORT"
1520 [161]I$:[139]I$[179][177]"R"[175]I$[179][177]"A"[137]1520
1530 [139]I$[178]"A"[167][138]
1540 [143] START PRINTING LABEL NOW
1550 [159]4,6:[159]2,6,2 :[143] ASCII, COLOR
1560 [159]1,6,1:[159]3,6,3: [143] PLOT, SIZE
1570 [152]3,2
1580 [152]2,CC:[143] LINE COLOR
1590 [129]F[178][171]1[164][171]4[169][171]2:[152]1,"M",0,F:[152]1,"D",479,F:[152]1,"D",0,F:[130]
1600 [129]G[178]1[164]3:[152]4:[130]
1610 [129]F[178][171]1[164][171]4[169][171]2:[152]1,"M",0,F:[152]1,"D",479,F:[152]1,"D",0,F:[130]
1620 [129]G[178]1[164]4:[152]4:[130]
1630 [129]F[178][171]1[164][171]4[169][171]2:[152]1,"M",0,F:[152]1,"D",479,F:[152]1,"D",0,F:[130]
1640 [152]2,CC:[152]1,"M",0,245:[152]3,1:[152]4,"FM:";
1650 [152]3,2;
1660 [152]4,[163]1);L$(1)
1670 [152]4,[163]1);L$(2)
1680 [152]4,[163]1);L$(3)
1690 [152]3,1:[152]4,"TO:";:[152]3,2;
1700 [152]4,[163]1);L$(4)
1710 [152]4,[163]1);L$(5)
1720 [152]4,[163]1);L$(6)
1730 [152]4,[163]1);L$(7) : [152]4
1740 [160]2:[160]4 : [153]
1750 [153]"OPEN A = ANOTHER LABEL"
1760 [153]" D = DONE"
1770 [161]I$:[139]I$[179][177]"A"[175]I$[179][177]"D"[137]1770
1780 [139]I$[178]"A"[167][138]
1790 [128]
1800 [143]*DATA FORMAT
1810 [143]FIRST DATA,YOUR RETURN ADDRESS, 3 LINES SEPARATED BY COMMAS
1820 [143]ALL OTHER ADDED DATA MUST HAVE 4 LINES SEPARATED BY COMMAS
1830 [143]IF YOU ARE GOING TO USE COMMAS, PUT THE DATA STATEMENT IN QUOTES
1840 [131]YOUR NAME,STREET ADDRESS,"CITY, STATE,ZIP"
1850 [131] ROBERT LAPRAD,600 HICKS ROAD,"NASHVILLE, TN",37221
1860 [131] NAMEA- - -,ADDRESSA1,ADDA2,"CITY, STATE,ZIP"
1870 [131] NAMEB- - -,ADDRESSB1,ADDB2,ADDB3
1880 [143]LAST DATA CHARACTER MUST BE A *
1890 [131]*